<template>
  <div class="container">
    <div>
      <Logo />

      <h1 class="title" @click="clickaaaaa()">ssrnuxt1 这是首页</h1>

      <div class="links">
        <nuxt-link to="/HelloWorld" class="button--grey"
          >测试页面加载ssr数据页面</nuxt-link
        >
        <nuxt-link :to="{ path: '/details?123123123' }" class="button--grey"
          >Gride-layout页面</nuxt-link
        >
        <nuxt-link to="/Async" class="button--grey"
          >测试插件ssr加载数据页面</nuxt-link
        >
      </div>

      <!-- {{ ceshidata }} -->
    </div>
  </div>
</template>

<script>
import { mapState } from 'vuex'
// import { createNamespacedHelpers } from 'vuex'
// const { mapState } = createNamespacedHelpers('hgModule')
export default {
  name: 'HelloWorld',
  data() {
    return {
      msg: 'HelloWorld',
    }
  },
  computed: {
    // ...mapState({
    //   ceshidata: (state) => state.ceshidata,
    // }),
  },
  methods: {
    clickaaaaa() {
      console.log('11111111111111')
    },
  },
}
</script>

<style lang="scss" scoped>
.container {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.title {
  font-family: 'Quicksand', 'Source Sans Pro', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  display: block;
  font-weight: 300;
  font-size: 100px;
  color: #35495e;
  letter-spacing: 1px;
}

.subtitle {
  font-weight: 300;
  font-size: 42px;
  color: #526488;
  word-spacing: 5px;
  padding-bottom: 15px;
}

.links {
  padding-top: 15px;
}
</style>
